<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="vue-qrcode.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <title>二维码</title>
</head>
<body>
<div id="app">
    <input v-model="message"/>
    <qrcode v-bind:value="message" v-bind:options="{ width: 400,height:400 }"></qrcode>
</div>
<script>
    new Vue({
        el: '#app',
        data: {
            message: "hello world",
        },
        components: {
            'qrcode': VueQrcode
        }
    });
</script>
</body>
</html>